package com.mydemo.design_pattern.action_type.strategy_pattern.demo1.impl;

import com.mydemo.design_pattern.action_type.strategy_pattern.demo1.Strategy;

/**
 * <p></p >
 *
 * @author liming1
 * @version $Id: OperationAdd, v1.0 2019-09-24 13:37 liming1 Exp $
 */
public class OperationAdd implements Strategy {
    @Override
    public int doOperation(int num1, int num2) {
        int i = num1 + num2;
        System.out.println("add: " + i);
        return i;
    }
}
